import path from 'path'
import { mdPlugin, mdTransform } from './plugin/mdPlugin.js'

module.exports = {
  // 导入文件别名
  alias: {
    '/@/': path.resolve(__dirname, './src'),
    '/@components/': path.resolve(__dirname, './src/components'),
  },
  // 配置 Dep 优化行为
  optimizeDeps: {
    include: ['lodash'],
  },
  configureServer: [mdPlugin],
  transforms: [mdTransform],
}